package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther:
 * @Date: 2024/7/5 16:45
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ChangePwdRequest对象", description = "客户端修改密码请求对象")
public class ChangePwdRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "来源类型：0 首次登录修改密码，1 修改密码")
    @NotNull(message = "缺少来源类型参数")
    private Integer type;

    @ApiModelProperty(value = "原密码")
    @NotBlank(message = "原密码不能为空")
    private String pwd;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPwd;
}
